from restful_api.web.serializer import *
from utils.unite.generic import *

"""
    @TODO web 接口
"""


class GetCarRecordListView(ListAPIView):
    """
        【购物车】列表
    """
    serializer_class = GetUserCarRecordListSerializer
    queryset = UserCarRecord.objects.filter(is_active=True)

    def get_queryset(self):
        return self.queryset.filter(user_id=self.request.user.pk)
